package com.wind.taobao.api.sns.picture.rest
{
	import com.wind.taobao.api.sns.convert.PictureConvert;
	import com.wind.taobao.core.webservice.TaobaoListResponse;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	import mx.collections.ArrayCollection;

	[Deprecated(replacement="com.wind.taobao.api.jianghu.rest.JianghuPicturesGetPictureListResponse", since="2.0")]
	/**
	 * taobao.sns.pictures.get Response
	 * @author fxy
	 *
	 */
	public class SNSPicturesGetResponse extends TaobaoListResponse
	{
		public var pictures:ArrayCollection;

		public function SNSPicturesGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initPictures();
		}

		private function initPictures():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("pictures"))
					pictures=PictureConvert.convertPictures(body["rsp"]["pictures"]);
			}
		}
	}
}